home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / showdevs.zip / GETLOL.ASM < prev    next >
Assembly Source File  |  1989-03-12  |  736b  |  29 lines

  1. ;
  2. ; This file contains a definition of the getlol() function in assembly language.
  3. ;
  4. ; The purpose is to obtain from DOS the address of the DOS List of Lists;
  5. ; It does this by making the undocumented DOS call int 21h, function 52h.
  6. ; The address of the List of Lists is returned in es:bx; this must be returned
  7. ; to the C program in dx:ax.
  8. ; See the file SHOWDEVS.DOC for an explanation of why the address of the
  9. ; List of Lists is wanted.
  10. ;
  11.  
  12. GETLOL_TEXT SEGMENT
  13.             ASSUME CS: GETLOL_TEXT
  14.  
  15.             PUBLIC _get_lol
  16.  
  17. _get_lol    PROC   FAR
  18.  
  19.             mov    ah,52h
  20.             int    21h
  21.             mov    dx,es
  22.             mov    ax,bx
  23.             ret
  24.  
  25. _get_lol    ENDP
  26.  
  27. GETLOL_TEXT ENDS
  28. END
  29.